home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UTIL / KEYBOARD / SMARTQUOTES / !Quotes / Docs / Manual < prev    next >
Text File  |  1995-07-25  |  24KB  |  480 lines

  1. Smart Quotes version 1.51
  2. © Sam Kington 25th July 1995
  3.  
  4. This program is shareware, *not* public domain or freeware. You are allowed
  5. to evaluate this program free of charge for a period of two weeks; after
  6. that, you should destroy it if you do not intend to use it, or pay the
  7. registration fee to carry on using it. The registered version has more
  8. features than the free version, so there’s a carrot *and* a stick ;-). See
  9. the file “Versions” for more details.
  10.  
  11. It only runs under RISC OS 3 or later, but nowadays this means most people.
  12. Bear in mind that this file uses all the typographically-correct characters
  13. provided by Smart Quotes, and as such will look strange on other platforms or
  14. if you’re viewing it in the System font.
  15.  
  16. Contents
  17. ********
  18.  
  19.    This file contains the following sections (those marked * are essential to
  20. using Smart Quotes, the others less so):
  21.  
  22.      *• Quotation marks – how quotes work
  23.      *• Expands – how expands work
  24.      *• Typing mistakes – which ones Smart Quotes can correct
  25.      *• Menu structure, windows – brief explanation
  26.      *• Expand menu – what it does
  27.      *• Settings window – where you choose types of substitution
  28.       • Choices dialogue box – various preferences or choices
  29.       • Other choices – more choices
  30.       • Characters dialogue box – change the characters used for quotes
  31.      *• Expands window – viewing and editing expands
  32.       • Using expands – hints and tips for expands
  33.      *• Known problems – please read
  34.       • How to use hotkeys with Smart Quotes
  35.      *• Thanks, credits and acknowledgements
  36.       • Boring legal message – terms of distribution
  37.       • How to contact me – says it all really. Address, email, etc. 
  38.  
  39. Quotation marks
  40. ***************
  41.  
  42.    Operation of the program is (hopefully) self-explanatory; the principles
  43. behind it may not be. What the program basically does is sit in the
  44. background, and intercept all the key presses, substituting quotes according
  45. to the current settings, correcting miscapitalisation and doing all sorts
  46. of clever things involving expands (see below for a full explanation). It
  47. does this by remembering which keypresses have come before, and guessing what
  48. the text you’re editing looks like. If you’re just typing away, or have moved
  49. about using the left or right cursor only, this will usually be almost 100%
  50. accurate; if you start moving up or down, moving left or right by words or
  51. sentences, or move the cursor with the mouse, it will give up and start from
  52. scratch. If Smart Quotes gives up, its icon will briefly change to a question
  53. mark “?”.
  54.  
  55.    Note that Smart Quotes assumes that Tab inserts a tab character, and that
  56. Copy deletes to the right. If this is not the case in the editor you are
  57. using, Smart Quotes may get confused.
  58.  
  59.    Smart Quotes will often not substitute quotes in a writable icon – keys
  60. are usually handled directly by the WIMP in writable icons, so Smart Quotes
  61. doesn’t get to hear about them. You have to insert them manually –
  62. Shift-Adjust-clicking on any of Smart Quotes’ windows’ close icon will run
  63. !Chars (or whatever character viewer you have chosen – see “Other choices”).
  64.  
  65. Expands
  66. *******
  67.  
  68.    Expands are similar in operation to Impressions’ abbreviations: you type
  69. in something which is automatically replaced by something else. They are used
  70. for ligatures (fi), accents (é), various other symbols (×) and can also be
  71. used to apply rules of punctuation (only one space after a full stop, commas
  72. must be before quotes and note afterwards, etc.). There are two parts to an
  73. expand, the “found” part and the “substituted” part – so for instance, to get
  74. a ligature such as fi, you would create an expand with “fi” in the found part,
  75. and “fi” in the substituted part. When you type fi, Smart Quotes will
  76. automatically replace it by fi.
  77.  
  78.    See the “Expands” directory for more details.
  79.  
  80.    Related to expands, but not quite the same thing, is Smart Quotes’ ability
  81. to delete ligatures properly. As long as Smart Quotes knows that you’re
  82. deleting a ligature (i.e. you typed it recently), if you delete it Smart
  83. Quotes will pretend it was two characters – so if the cursor is after “fi,”
  84. and you press Delete, it will delete the fi and replace it with a f (the same
  85. thing works with Copy from the other end).
  86.  
  87.    See “Expands window” for more details about how to add expands yourself,
  88. and “Using expands” for some hints and tips.
  89.  
  90. Typing mistakes
  91. ***************
  92.  
  93.    Typing mistakes, known as “typos” for short: most of them are either
  94. wrong capitalisation or transposition of two letters. Short of having a
  95. massive dictionary Smart Quotes can’t help you with transposition – and
  96. anyway if you’re using this in a word processor you will have a spell checker
  97. –, but it can make an intelligent guess at correcting capitalisation.
  98.  
  99.    What usually happens is this: you have Caps Lock turned off, and you want
  100. to type a word beginning with a capital letter, so you press Shift to make
  101. the first letter a capital – and then you leave it on too long so the second
  102. letter ends up capitalised as well. You’ve usually let it go by the time you
  103. type the third letter, so you end up WIth WOrds THat LOok SOmething LIke
  104. THis. If you have typing mistake checking turned on, and you type two capital
  105. letters at the beginning of a word and then a lower-case letter, Smart Quotes
  106. will replace the second capital letter by a lower-case letter, so you end up
  107. With Words That Look Something Like This.
  108.  
  109.    This is the option that is least likely to cause you problems, as it
  110. doesn’t involve any fancy characters that some programs don’t like. Only turn
  111. it off it you will be typing words like NExT a lot of the time, or if case
  112. matters (variable names, SWI names etc.).
  113.  
  114. Menu structure, windows
  115. ***********************
  116.  
  117.    Smart Quotes supports interactive help, so I will only explain things in
  118. this file that wouldn’t fit in the interactive help messages. Interactive help
  119. should by default be turned on; if it isn’t, select “Interactive help” in the
  120. Choices window, available from the menu option “Choices...” in the icon bar
  121. menu.
  122.  
  123.    One thing worth mentioning here is that you can move the icon around by
  124. dragging with Shift and Ctrl held down. If you drag to the icon bar it
  125. inserts the icon where you dragged it; if you drag outside the icon bar, it
  126. will create a floating window which contains the icon. The state and position
  127. of the icon (if in a window) are stored in the choices.
  128.  
  129. Expand menu
  130. **************
  131.  
  132.    Save saves a file called “Expands” in the directory pointed to by the
  133. variable SmartQuotes$ChoicesDir, which is by default SmartQuotes$Dir but can
  134. be changed to point elsewhere if the Smart Quotes directory is read-only or
  135. restricted access (i.e. on a network) in the “Other choices” window (see
  136. below). The Expands file is a simple Obey file, so double-clicking on it
  137. will load the expands.
  138.  
  139.    Refresh: basically, choose this option if you want to make sure the front
  140. end really knows what characters are going to be substituted. Usually it
  141. does, but if you have modified the expands in the command line, or by
  142. double-clicking on another Expands file, you have to tell it the
  143. expands have changed. It’s also useful if the window seems to be the wrong
  144. size.
  145.  
  146. Settings window
  147. ***************
  148.  
  149.    The settings dialogue box determines how characters will be substituted.
  150. Choices take effect immediately, so playing around with the different
  151. options and typing to see what happens is usually the best way to work out
  152. what they all mean.
  153.  
  154. Choices dialogue box
  155. ********************
  156.  
  157.    This dialogue box affects the working of the front-end, and so doesn’t
  158. affect substitution of quotes: it’s mainly cosmetics. Changes take effect
  159. immediately. See also the “Other choices” window.
  160.  
  161.    “Show quotes’ state in icon”: If this option is selected, Smart Quotes’
  162. icon will show the state of quote substitution – an open double quote “ if
  163. quotes are on, and a neutral quote " if they are not. If quotes and/or
  164. expands are on, it will briefly change to a question mark “?”. 
  165.  
  166.    “Interactive help”: If selected, you will get interactive help on all of
  167. Smart Quotes’ windows and icons; if not, you won’t. As mentioned above, this
  168. is supplied with the module More Help, which means it doesn’t eat up any of
  169. Smart Quotes’ memory – it does use some in the Module Area, though.
  170.  
  171.    “‘Quit’ kills module”: If selected, when you quit the front-end, the
  172. ‘SmartQuotes’ module will be killed, thus stopping all substitution. If you
  173. want substitution to carry on after you quit the front-end (if you are short
  174. of memory, for instance), turn this option off. Bear in mind, however, that
  175. without the front-end you will need to use the command line (F12 or
  176. Ctrl-F12) to modify the settings; also, when you quit the front-end, you may
  177. have forgotten the module is still running and substituting quotes.
  178. Programmers beware!
  179.  
  180. Other choices
  181. *************
  182.  
  183.    The “Other choices” window is different from the other windows, in that
  184. changes you make in this window do not take effect immediately. This is due
  185. to the special nature of the Other choices window, which is in fact “owned”
  186. by another application, as it wouldn’t fit in the main Smart Quotes
  187. application – which explains the disc access when you click on the “Other...”
  188. button in the Choices window. Also, when you quit Smart Quotes the “Other
  189. choices” window stays open.
  190.  
  191.    In this window you can change the font styles Smart Quotes uses for the
  192. “Expands” window, the “Edit expands” window and the “Characters”
  193. window; you can change the application to be run when you Shift-Adjust click
  194. on a close icon (the “character viewer”); and you can change where Smart
  195. Quotes stores its Choices files, if you are running Smart Quotes from a
  196. read-only filing system like a network, a CD or a protected hard disc.
  197.  
  198.    Full interactive help is provided, so there shouldn’t be too many
  199. difficulties. The following comments may be useful:
  200.  
  201.    • You don’t have to drag an application to the window to change the
  202. character viewer; you can drag a file as well. (Unfortunately you cannot use a
  203. directory - you can’t have everything). The file will be run using *WimpTask,
  204. which will run the file without telling applications – so if you run a Drawfile
  205. and Draw (or a similar application) is running, a second copy of Draw will be
  206. loaded. Therefore, the best files to use are Obey, Command, the TaskWindow
  207. equivalents, Desktop or similar files.
  208.  
  209.    • You can change the location of the Choices directory (usually called
  210. “SQ Choices” but you can modify the actual filename by editing the writable
  211. field); when you click “Save and use”, if the filename is different the files
  212. will be copied from their old location to their new one. Smart Quotes will
  213. then try and update the “Choices” file in the (NB) *Smart Quotes* directory –
  214. which may be write-protected. In this case, Smart Quotes will try and save it
  215. in the Scrap directory. This also happens if the new choices directory is
  216. write protected. If you don’t have a Scrap directory set up (i.e. you haven’t
  217. “seen” Scrap if you have RISC OS 3.1) the save will fail.
  218.  
  219.    • When you modify one of the options, the title bar will change to “Other
  220. choices *” to show that the choices have been modified.
  221.  
  222. Characters dialogue box
  223. ***********************
  224.  
  225.    Clicking Default will revert to default settings. An individual character
  226. will also revert to default if the field is left blank.
  227.  
  228.    Clicking Save will save the preferred characters to a file called
  229. “<SmartQuotes$ChoicesDir>.Chars” (see above). This is a standard Obey file,
  230. and so is human-readable and editable (unlike the rather obscure Choices file
  231. ;) ). Again, like the Expands file, running it from a Filer window will
  232. load the characters (provided Smart Quotes is running, of course).
  233.  
  234.    Clicking Refresh will re-scan the characters, in case you have changed
  235. the definitions via the command line or by double-clicking on another Chars
  236. file.
  237.  
  238. Expands window
  239. **************
  240.  
  241.    Choosing ”Expands...“ from the main menu will open the Expands
  242. window, containing a list of all the current expands. The list is divided
  243. into two columns, somewhat like this:
  244.  
  245.    Found  Subst
  246.    --     –
  247.    –-     —
  248.    —-     •
  249.    fi     fi
  250.    fl     fl
  251.  
  252.    The window uses an outline font (Trinity.Medium for the text,
  253. Homerton.Bold for the heading, by default) so you can see exactly what is
  254. going on.
  255.  
  256.    The Found column contains the string typed in, the Subst column the text
  257. that replaces it.
  258.  
  259. Using expands
  260. *************
  261.  
  262.    Most expands in the list are fairly straightforward: f and i make fi, -
  263. twice produces an en-dash (–). There is however more than that to expands:
  264. you can combine several expands. For instance, to get a longer em-dash,
  265. type - three times: it will be substituted by an en-dash, and then by an
  266. em-dash, as another expand was defined as – + - = —. For when a expand
  267. is substituted, it simulates a key-press, and can therefore be the first part
  268. of another expand. (Typing - yet again will turn the em-dash into a bullet
  269. •, as yet another expand was defined as — + - = •).
  270.  
  271.    Accents can also be provided: e and / results in é, e and \ in è, etc.
  272. Circumflexes are more difficult (you need a ^, which uses Shift), and umlauts
  273. are downright difficult: " is already used, and using a colon is dangerous as
  274. colons are commonly used after vowels. You could always use £ or |.
  275.  
  276.    Cautionary tale: at one point I was going through the list of ligatures
  277. in the character set, and found “œ”. Having just done æ, I added o + e = œ.
  278. Then I typed “does”. Oops. So beware: don’t add expands just because
  279. there’s a character that *could* be substituted - you might not want to use
  280. it.
  281.  
  282. Known problems
  283. **************
  284.  
  285.    First of all, you can’t save the settings from the “Other choices” window
  286. if you’re running Smart Quotes from a read-only file system like a CD. Copy it
  287. somewhere else if you want to change the settings.
  288.  
  289.    If you are programming, typing commands at the CLI (F12 or taskwindow),
  290. doing anything at all involving comms, or in general using an application
  291. that doesn’t look too kindly upon top-bit-set characters, turn Smart Quotes’
  292. substitution off (Adjust-click on the icon will do the trick temporarily).
  293. Otherwise, the CLI will fail to recognise your command (“file 'filters' not
  294. found”), any quotes or expands will be tokenised if you’re programming in
  295. BASIC (it’s particularly spectacular in Zap ;) ), and any e-mail or usenet
  296. postings will look particularly gruesome on some people’s machines. This
  297. isn’t a bug, or even a feature, so there’s nothing you can do about it.
  298.  
  299.    As mentioned previously, Smart Quotes will often not substitute characters
  300. when the cursor is in a writable icon – in a dialogue box or off a menu item,
  301. for instance Name disc in the ADFS icon bar menu. This is because the WIMP
  302. handles those key presses itself (unless the “Notify” option is set in the
  303. validation string, e.g. “KARTN”), and Smart Quotes doesn’t get a look in.
  304. This shouldn’t be too much of a problem – usually you don’t want substitution
  305. in those cases anyway. However, any applications that require you to enter
  306. text in a dialogue box (a field name in a database, for instance), will not
  307. allow substitution.
  308.  
  309.    Those using Zap may find certain expands don’t work – namely, those
  310. using a shift-key to produce the second character, like A E Æ (if Caps Lock
  311. is off), < < « etc. This is because, when Smart Quotes sends Zap a delete
  312. character, Shift is still held down, so Zap looks at Shift-Delete and sees
  313. the command “DELETENEXT” rather than “DELETE”, and so fails to delete the
  314. character, so you’re left with something like AÆ, <« etc. To get round this,
  315. you have to change the key mappings:
  316.       Edit the key mappings (iconbar menu, Options=>Edit keys)
  317.       Find sDELETE in the file
  318.       Replace whatever command is opposite it by DELETE
  319.       Save the file
  320.       Re-load the key mappings as the new one (Options=>Reload keys)
  321.       
  322.    On a similar level, if you hold down the hyphen key, you may find that
  323. dashes in various shapes and sizes start lining up, looking something like
  324. this -----—•–•-—•-–. (This was actually done in Edit as Zap is fast enough
  325. not to have this problem ;) ). This is because Edit (or whoever the culprit
  326. was) wasn’t managing to delete characters fast enough before another one
  327. comes along, so Smart Quotes’ fancy substitution method falls over. The
  328. solution is simple: don’t type as fast!
  329.  
  330.    If you reload the module when Smart Quotes is running, the expands window
  331. may get seriously confused. Use “Refresh” to solve this.
  332.  
  333.    I have been told of problems with certain terminal emulators (think it was
  334. Hearsay), where Smart Quotes causes spurious interrupts or something. I don’t
  335. know any more about this, and knowing comms programs it’s probably not me ;).
  336. But you have been warned.
  337.  
  338.    As mentioned elsewhere, KeyMouse uses Alt-Select to move a window.
  339. Clicking Alt-Select on the iconbar makes it want to move the window –
  340. obviously it can’t, but tries all the same, and someone complains (ADFS
  341. Filer on my machine). This isn’t Smart Quotes’ fault!
  342.  
  343.    If windows appear in strange positions, or fail to appear at all when you
  344. try and open them, you very probably have a corrupt Choices file. Delete it
  345. and re-run the program; the program will complain that it can’t find a Choices
  346. file, and will then create a new one with the default settings:
  347.    • All substitutions on
  348.    • Show quotes state in icon
  349.    • Use interactive help
  350.    • Kill module when quit
  351.    • Windows positioned to suit a mode 35 screen or similar (768x288)
  352.    
  353.    Impression’s spell checker doesn’t take kindly to fi and fl (certainly not
  354. on my version, Publisher 4.01, ImpressionSpell 1.27). When spell checking, it
  355. ignores fi and fl, so if you spell check the word “finding” it will complain
  356. that it doesn’t know the word “nding” (rather than complain about not knowing
  357. the word “finding” ;)). This is because, if you look at the character set
  358. (double-click on Smart Quotes’ icon or run !Chars), fi and fl are buried among
  359. the odds and ends, like bullets, fractions, dashes, etc., not among the
  360. accents at all (Impression knows about accents - checking the word “étrange”
  361. will come up with “étrange” and not “trange”). I suspect (I haven’t
  362. tried it) Impression will ignore all characters from € to ¿, and cope happily
  363. with À to þ (not ÿ for some reason), so there will be the same problem for Œ
  364. and œ (but not for Æ and æ).
  365.    I don’t know what you can do about this, apart from complaining to
  366. Computer Concepts and using the “Ignore” button a lot ;) – the nice man from
  367. Computer Concepts said they had no plans to add support for ligatures to
  368. ImpressionSpell in the near future. (This is from the company whose own
  369. literature, namely the DemoDoc file supplied with Publisher, recommends you
  370. use ligatures all the time ;) ). If it bothers you, remove fi and fl from the
  371. list.
  372.  
  373. Thanks, acknowledgements, comments
  374. **********************************
  375.  
  376.    I would like to thank Acorn for this nice machine, and especially the bit
  377. in RISC OS 3.1 and later (the Filter Manager) that allows you to intercept
  378. other tasks’ events and muck about with them as you please. It is exceedingly
  379. useful - I have currently nine programs that use filters on my machine (it
  380. used to be seven, but I've been adding them since)...
  381.  
  382.    I got the idea for this utility after reading a small news item in
  383. MacWorld about a similar program for the Mac, that sat in the background and
  384. substituted quotes for you. It also did em dashes, and Smart Quotes didn’t
  385. use to do those, but now it does, and much more...
  386.  
  387.    I am grateful to Michael Rozdoba, author of Desktop+, for making his
  388. source code freely-available so I could see how he coded his code variables -
  389. although I must point out that the vast majority of the code is mine (I
  390. pinched that sentence from him as well ;) ). I don’t think anyone out there
  391. consciously rips off other people’s code (as in copies large chunks of it
  392. verbatim and calls it his own); however, I’m sure every programmer out there
  393. has at one stage or another taken a peek at someone else’s code. And as I’m
  394. not doing this for money or anything, I’ve included the complete source code
  395. to the applications, module and even vector claim routine ;).
  396.  
  397.    Also, thanks to the people who e-mailed me to tell me how wonderful
  398. previous versions were (or not, as the case may be), and to give me ideas
  399. for this version.
  400.    
  401.    The HENSA archive also deserves a thank-you for providing such a good
  402. service to Acorn users over the years (even if it looks likely to die a slow
  403. death in the more or less near future); a big ‘hi’ also goes out to Tom and
  404. Don Clarke. But I’ll stop here before this starts looking like a demo ;).
  405.  
  406.    The disclaimer was “lifted” from Ting Kuei’s DeskPatch help file - this
  407. doesn’t mean anything, I was just looking for a disclaimer and DeskPatch was
  408. the first thing I looked at that had one I liked. The freeware bit I also
  409. stole from someone, but I can’t remember who - sorry!
  410.  
  411.    Other people I should thank for writing very useful bits of software, used
  412. to write this or just making my desktop look prettier:
  413.       Dick Alstein, for his wonderful TemplEd.
  414.       Dominic Symes for his even more wonderful Zap.
  415.       Cy Booker for his BASIC cruncher - worth every penny of the registration fee.
  416.       Michael Rozdoba for Desktop+
  417.       Mark Greenwood, for Black Hole.
  418.       Matthew Godbolt, for FinalLook (quite simply essential on a RO3.1
  419.          machine)
  420.       Olly Betts for ReducedDrag and SpecialCase - the latter in particular
  421.          is a godsend now I have a CD-ROM.
  422.       Ian Jeffray for Memory Pie (even if I hate the gratuitous pic ;) ).
  423.       Simon Burrows for FontsPlus (font directory thingy).
  424.       Computer Concepts for Impression Publisher.
  425.    Sorry for anyone I’ve forgotten.
  426.    
  427. Boring legal message
  428. ********************
  429.  
  430.    This registered version of Smart Quotes must not be distributed.
  431.  
  432.    You can, however, use and distribute the module “MoreHelp” separately.
  433.  
  434.    This software is supplied “as is”: I make no warranty, expressed or
  435. implied, of the merchantability of this software or its fitness for any
  436. particular purpose. In no circumstances shall I be liable for any damage,
  437. loss of profits, or any indirect or consequential loss arising out of the use
  438. of this software or inability to use this software, even if I have been
  439. advised of the possibility of such loss.
  440.  
  441.    In other words, if your computer crashes, blows up, you lose all your work
  442. etc. all because of Smart Quotes, don’t blame me.
  443.  
  444.    If you use this at all, please write to me or e-mail me (see below)
  445. telling me how wonderful or how atrocious it is.
  446.  
  447. How to contact me
  448. *****************
  449.  
  450. All bug-reports, suggestions, comments or indeed any feedback at all will be
  451. welcomed. Here’s how to get to me:
  452.  
  453. E-mail     : 926286ki@udcf.gla.ac.uk.
  454.              This should be OK until June 1996.
  455.              I probably won’t be in Glasgow outside term-time, but mail will
  456.              be forwarded to wombat@altern.com, which is my French email
  457.              address.
  458.  
  459. Snail-mail : My term-time address, at least until June 1996, is:
  460.              Sam Kington
  461.              12/1 Southpark Terrace
  462.              Glasgow G12 8LG
  463.              SCOTLAND
  464.              
  465.              Again, a backup is the home address – anything that goes here will get
  466.              to me eventually.
  467.              Sam Kington
  468.              Merlhiot
  469.              24420 Savignac les Eglises
  470.              FRANCE
  471.  
  472. Term-time is October to June, with bits off at Christmas (3 weeks) and
  473. Easter (4 weeks).
  474.  
  475. I can guarantee support and updates by email; anything else is trickier. If
  476. you send me a disc and the appropriate stamp (or two discs) I'll send you the
  477. latest version of Smart Quotes - registered or unregistered, depending on
  478. which version you have at the moment. (Unless you’ve borrowed this file from a
  479. friend, you should have the registered version).
  480.